package yb.ecp.fast.infra.feign;

import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import yb.ecp.fast.infra.infra.ActionResult;

/**
 * Created by LiChangjiang on 2018/1/8 0008.
 */
@EnableFeignClients
@FeignClient("${oauth2.feign.name:fast-oauth2-server}")
public interface AppClient {
    @RequestMapping(value = "/App/checkAuthCode", method = RequestMethod.GET)
    ActionResult<Object> checkAuthCode(@RequestParam("appId") String appId, @RequestParam("authCode") String authCode);
}

